package entity

import "time"

type AlarmThreshold struct {
	ID              int64     `gorm:"column:id;primary_key"`
	HostIP          string    `gorm:"column:host_ip"`
	CPUMin          int       `gorm:"column:cpu_min"`
	CPUMax          int       `gorm:"column:cpu_max"`
	MemoryMin       int       `gorm:"column:memory_min"`
	MemoryMax       int       `gorm:"column:memory_max"`
	DiskMin         int       `gorm:"column:disk_min"`
	DiskMax         int       `gorm:"column:disk_max"`
	DiskMaxEnable   int       `gorm:"column:disk_max_enable"`
	DiskNorEnable   int       `gorm:"column:disk_nor_enable"`
	DiskMinEnable   int       `gorm:"column:disk_min_enable"`
	MemoryMaxEnable int       `gorm:"column:memory_max_enable"`
	MemoryNorEnable int       `gorm:"column:memory_nor_enable"`
	MemoryMinEnable int       `gorm:"column:memory_min_enable"`
	CPUMaxEnable    int       `gorm:"column:cpu_max_enable"`
	CPUNorEnable    int       `gorm:"column:cpu_nor_enable"`
	CPUMinEnable    int       `gorm:"column:cpu_min_enable"`
	CPUNor          int       `gorm:"column:cpu_nor"`
	MemoryNor       int       `gorm:"column:memory_nor"`
	DiskNor         int       `gorm:"column:disk_nor"`
	CreatorID       uint64    `gorm:"column:creator_id"`
	Creator         string    `gorm:"column:creator"`
	CreateTime      time.Time `gorm:"column:create_time;type:datetime(0);autoUpdateTime"`
	ModifyID        uint64    `gorm:"column:modify_id"`
	Modifier        string    `gorm:"column:modifier"`
	ModifyTime      time.Time `gorm:"column:modify_time;type:datetime(0);autoUpdateTime"`
}
